import request from '@/utils/request'

export function fetchVideos(data) {
  return request({
    url: '/video',
    method: 'GET',
    params: data
  })
}


export function fetchVideoById(data) {
  return request({
    url: `/video/${data}`,
    method: 'GET'
  })
}

export function UpdateVideoByvideoId(data) {
  return request({
    url: `/video`,
    method: 'PATCH',
    data: data
  })
}

